/* =========================================
   MONITORING SYSTEMS CSS (Derived from Waste Segregation)
   ========================================= */

/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0f1714;
    color: #ffffff;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- NAV --- */
nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 20;
    background: transparent !important;
}

.logo {
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.logo img {
    width: 360px; 
    height: auto;
    display: block;
    mix-blend-mode: multiply; 
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.nav-links a {
    padding: 0.5rem 1.0rem;
    border-radius: 50px;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    transition: .4s ease;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.35);
}

.nav-item {
    position: relative;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown {
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 35, 5, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 1rem;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column; 
    gap: 8px; 
}

.dropdown a {
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    padding: 0.6rem 1rem !important;
    border-radius: 8px !important;
    display: block !important;
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
    white-space: nowrap;
}

.dropdown a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #a8e08a !important;
}

/* --- Hero Section & Global Layout --- */
.main-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    width: 100%;
    flex-grow: 1;
    /* Subtle digital grid overlay for monitoring vibe */
    background: 
        linear-gradient(to right, rgba(10, 15, 13, 0.95), rgba(15, 23, 20, 0.8), rgba(10, 15, 13, 0.95)),
        url('assets/images/waste-workers.png');
    background-size: cover;
    background-position: center;
}

.main-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    width: 100%;
    max-width: 95%;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    display: flex;
    flex-direction: row;
    flex-grow: 1; 
    justify-content: flex-start;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-section {
    max-width: 48rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 140px;
    padding-bottom: 40px;
}

/* System Live Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.4);
    border-radius: 50px;
    color: #4CAF50;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #4CAF50;
    border-radius: 50%;
    box-shadow: 0 0 10px #4CAF50;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 2.5rem;
    font-weight: 600;
    color: #75d479;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title { font-size: 4rem; }
    .hero-subtitle { font-size: 3rem; }
}

.hero-desc {
    color: #cbced3;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 44rem;
    font-weight: 400;
}

/* Buttons */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.btn {
    padding: 0.875rem 2.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    text-transform: uppercase;
}

.btn-primary {
    background-color: #4CAF50;
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(76, 175, 80, 0.4);
}

.btn-primary:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(76, 175, 80, 0.5);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* --- NEW: Data Matrix (Bento Box Layout) --- */
.matrix-wrapper {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem 2rem 5rem 2rem;
    position: relative;
    z-index: 5;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.matrix-card {
    background: linear-gradient(145deg, rgba(30, 42, 35, 0.6) 0%, rgba(15, 22, 18, 0.8) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.matrix-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(76,175,80,0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.matrix-card:hover {
    transform: translateY(-8px);
    border-color: rgba(76, 175, 80, 0.4);
    box-shadow: 0 30px 50px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(76, 175, 80, 0.1);
}

.matrix-card:hover::after {
    opacity: 1;
}

/* Card Sizing/Spanning */
.highlight-card {
    grid-column: span 6;
    grid-row: span 2;
    background: linear-gradient(145deg, rgba(46, 75, 54, 0.4) 0%, rgba(20, 30, 24, 0.8) 100%);
    border-color: rgba(76, 175, 80, 0.25);
    justify-content: center;
}

.regular-card {
    grid-column: span 6;
}

/* Card Internals */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.card-header i {
    color: #4CAF50;
    width: 2rem;
    height: 2rem;
}

.pulse-ring {
    width: 12px;
    height: 12px;
    background-color: #75d479;
    border-radius: 50%;
    position: relative;
}
.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px solid #75d479;
    border-radius: 50%;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.pill-tag {
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #cbced3;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255,255,255,0.15);
}

.matrix-label {
    color: #75d479;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.matrix-number {
    font-size: 4rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.matrix-subtext {
    font-size: 1rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.matrix-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(76,175,80,0.5), transparent);
    margin-bottom: 1.5rem;
}

.matrix-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.matrix-desc {
    font-size: 0.9rem;
    color: #cbced3;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .highlight-card { grid-column: span 12; }
    .regular-card { grid-column: span 12; }
}


/* --- Narrative & Impact Section (Light Theme) --- */
.impact-section {
    position: relative;
    padding: 6rem 2rem;
    background: #f7fee3; /* Matches waste-segregation styling */
    color: #0f1714;
}

.container {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
}

/* Narrative Grid */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 6rem;
}

@media (min-width: 1024px) {
    .layout-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 6rem;
    }
}

.header-col .main-title {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    color: #0047aa;
    letter-spacing: -0.02em;
}

.highlight {
    background: linear-gradient(135deg, #8cb500 0%, #0047aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-col {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
}

/* Techy Node Line */
.content-col::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: rgba(0, 71, 170, 0.15);
}

.text-block {
    position: relative;
    padding-left: 5rem;
}

.digital-node {
    position: absolute;
    left: 17px; /* Centered on the 2px line (24px - 7px) */
    top: 6px;
    width: 14px;
    height: 14px;
    background-color: #f7fee3;
    border: 3px solid #0047aa;
    border-radius: 4px; /* Square for tech vibe */
    transition: all 0.3s ease;
}

.text-block:hover .digital-node {
    background-color: #8cb500;
    border-color: #8cb500;
    transform: scale(1.2) rotate(45deg);
    box-shadow: 0 0 15px rgba(140, 181, 0, 0.4);
}

.text-block p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.8;
}

.text-block p::first-line {
    color: #1e293b;
    font-weight: 600;
}

/* NEW: Impact Node Grid (replaces slider) */
.impact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.impact-header h3 {
    font-size: 2rem;
    color: #0047aa;
    font-weight: 800;
    margin-bottom: 1rem;
}

.impact-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #8cb500, #0047aa);
    margin: 0 auto;
    border-radius: 2px;
}

.impact-node-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.impact-node {
    background: #ffffff;
    border: 1px solid rgba(0, 71, 170, 0.1);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.impact-node::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(140, 181, 0, 0.05) 0%, transparent 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.impact-node:hover {
    transform: translateY(-5px);
    border-color: rgba(140, 181, 0, 0.4);
    box-shadow: 0 20px 40px -10px rgba(0, 71, 170, 0.1);
}

.impact-node:hover::before {
    opacity: 1;
}

.node-icon {
    width: 50px;
    height: 50px;
    background: #f0f7ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: #0047aa;
    transition: all 0.3s;
}

.impact-node:hover .node-icon {
    background: #0047aa;
    color: #ffffff;
    transform: scale(1.1);
}

.impact-node h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.impact-node p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

/* --- Mission Section --- */
.mission-section {
    padding: 80px 20px;
    background-color: #f9f4ef;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mission-container {
    max-width: 900px;
    text-align: center;
}

.mission-tag {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: #8cb500;
    margin-bottom: 20px;
    font-weight: 700;
}

.mission-text {
    font-size: 1.6rem;
    line-height: 1.6;
    color: #220303;
    font-weight: 300;
    margin: 0 auto;
}

.mission-text strong {
    color: #0047aa;
    font-weight: 600;
}

.mission-line {
    width: 60px;
    height: 4px;
    background-color: #8cb500;
    margin: 30px auto 0;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .mission-text { font-size: 1.25rem; }
    .mission-section { padding: 50px 20px; }
}


/* --- FOOTER --- */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 80px 140px 60px 80px; 
    background: linear-gradient(145deg, #0047a5, #003579);
    color: #fff;
    font-family: "Poppins", -apple-system, sans-serif;
    position: relative;
    overflow: hidden;
    gap: 50px;
}

.footer-left {
    flex: 1.2;
    min-width: 300px;
}

.footer-left h2 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 25px;
    color: #ffffff;
}

.footer-badges {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
}

.footer-badges span {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.dot {
    width: 10px;
    height: 10px;
    background: #00d063;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 12px rgba(0, 208, 99, 0.6);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 30px;
    max-width: 450px;
}

.footer-links li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    opacity: 1;
    padding-left: 5px;
    color: #00d063;
}

.footer-copy {
    font-size: 13px;
    opacity: 0.5;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    min-width: 350px;
}

.footer-desc {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 440px; 
}

.footer-btn {
    padding: 14px 32px;
    border-radius: 50px;
    background: #ffffff;
    color: #003579;
    border: none;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    margin-bottom: 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-btn:hover {
    transform: scale(1.05) translateX(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-logo img {
    width: 250px;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.25));
    border-radius: 8px;
}

.footer-legal {
    display: flex;
    gap: 25px;
}

.footer-legal a {
    color: #ffffff;
    font-size: 13px;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.footer-legal a:hover {
    opacity: 1;
}

.footer-floating-icons {
    position: absolute;
    right: 40px; 
    top: 50%;
    transform: translateY(-50%); 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    z-index: 10;
}

.circle-btn {
    width: 48px;
    height: 48px;
    background: #004fbb;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-btn:hover { 
    background: #00d063; 
    transform: translateY(-5px);
}

.side-icons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 40px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.15);
}

.icon-btn {
    width: 42px;
    height: 42px;
    background: #0051c5;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-btn img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.icon-btn:hover { 
    transform: scale(1.15) rotate(5deg);
    background: #0047a5;
}

@media (max-width: 1024px) {
    .footer {
        flex-direction: column;
        padding: 60px 40px;
        align-items: center;
        text-align: center;
    }
    .footer-right {
        align-items: center;
        text-align: center;
        margin-right: 0;
    }
    .footer-floating-icons {
        display: none; /* Hide floating icons on smaller screens */
    }
}


/* --- ANIMATIONS --- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(2.5); opacity: 0; }
}